import html2canvas, { Options } from "html2canvas";

/**用来生成指定id或者class元素的截图 */
export class ElementPng {
    /**异步寒素建议用async来调用 */
    static async getpng(element: HTMLElement, option?: Partial<Options>) {
        const png = await html2canvas(element, option);
        return png;
    }
}
